package ch05;

public class PrivateOverride {
	public void f(){
		System.out.println("private f()");
	}
	
	public static void main(String [] args){
		PrivateOverride override = new Derived();
		override.f();
	}
}

class Derived extends PrivateOverride{
	public void f(){
		System.out.println("public f()");
	}
}